package com.ethink.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.info.TobSaleReturnOrderInfo;
import com.ethink.order.api.model.TobSaleReturnModeModel;
import com.ethink.order.api.model.TobSaleReturnModel;
import com.ethink.order.api.request.*;
import com.ethink.order.api.response.TobSaleReturnQueryDetailResponse;

import java.util.List;

/**
 * 预售退单 Service接口
 *
 * @author default
 * @date 2022-12-08
 */
public interface TobSaleReturnOrderService {

    Boolean add(TobSaleReturnOrderAddRequest request);

    Page<TobSaleReturnModel> pageQuery(TobSaleReturnOrderQueryRequest request);

    TobSaleReturnQueryDetailResponse queryDetail(Long id);

    Boolean update(TobSaleReturnOrderUpdateRequest request);

    Boolean delete(Long id);

    Boolean pass(Long id);

    Boolean refuse(Long id);

    Boolean updateStatus(UpdateStatusBaseRequest request);

    Boolean tobSaleReturnOrderStatusFinish(List<String> orderNo);

    Boolean tobSaleReturnOrderTakePlaceInsert(TobSaleReturnOrderTakePlaceInsertQueryRequest request);

    TobSaleReturnOrderInfo selectById(Long id);

    Boolean tobSaleReturnOrderRevokeOrder(Long id);

    Page<TobSaleReturnModeModel> pageModeQuery(TobSaleReturnOrderQueryRequest request);

}